package NumberOne;

public class Clerk extends Employee {
    private Manager manager;

    public Manager getManager() {
        return manager;
    }

    public void setManager(Manager manager) {
        this.manager = manager;
    }

    public Clerk(Manager manager) {
        this.manager = manager;
    }

    public Clerk(String name, String workId, String dept, Manager manager) {
        super(name, workId, dept);
        this.manager = manager;
    }

    public Clerk() {
    }

    public Clerk(String name, String workId, String dept) {
        super(name, workId, dept);
    }

    @Override
    public void showMsg() {
        System.out.println(this.getDept()+"的："+getName()+",员工编号："+this.getWorkId()+"他的经理是"+manager.getName());
    }
}
